export function getRandom(option: string): any {
    switch (option) {
        case 'x':
            return Math.random() * window.innerWidth;
        case 'y':
            return Math.random() * window.innerHeight;
        case 's':
            return Math.random();
        case 'r':
            return Math.random() * 6;
        case 'fnx':
            const rx = -0.5 + Math.random();
            return (x: number, _y: number) => x + 0.5 * rx - 1.7;
        case 'fny':
            const ry = 1.5 + Math.random() * 0.7;
            return (_x: number, y: number) => y + ry;
        case 'fnr':
            const rr = Math.random() * 0.03;
            return (r: number) => r + rr;
    }
}